package org.bim.view.drag.design.api.vo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TUserVO {
    private String token;
    private String account;
    private String name;
    private String email;
    private Integer role;
    private String id;
    private String outId;

    public boolean isAdmin(){
        return role!=null && role ==1;
    }
    public String roleName(){
        if(isAdmin()){
            return "admin";
        }
        return "developer";
    }
}
